home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / input / keyboard.i < prev   
Encoding:
Text File  |  1997-10-27  |  1.4 KB  |  82 lines

  1.     IFND INPUT_KEYBOARD_I
  2. INPUT_KEYBOARD_I  SET  1
  3.  
  4. **
  5. **  $VER: keyboard.i V0.9B
  6. **
  7. **  (C) Copyright 1996-1997 DreamWorld Productions.
  8. **      All Rights Reserved.
  9. **
  10.  
  11.     IFND    DPKERNEL_I
  12.     include 'dpkernel/dpkernel.i'
  13.     ENDC
  14.  
  15. ******************************************************************************
  16. * Keyboard object.
  17.  
  18. KEYVERSION    =    1
  19. TAGS_KEYBOARD =    ((ID_SPCTAGS<<16)|ID_KEYBOARD)
  20.  
  21.     STRUCTURE    KEY,HEAD_SIZEOF
  22.     LONG    KEY_Size
  23.     APTR    KEY_Buffer
  24.     WORD    KEY_AmtRead
  25.     WORD    KEY_
  26.     LONG    KEY_ID
  27.  
  28. ******************************************************************************
  29. * Special Keypresses.  All other keys can be considered to be in ASCII format. 
  30.  
  31. K_SCS  =    $80            ;ScreenSwitch (LEFTAMIGA + M)
  32. K_DEL  =    $81
  33. K_HELP =    $82
  34.  
  35. K_LSHIFT =    $83
  36. K_RSHIFT =    $84
  37. K_CAPS   =    $85
  38. K_CTRL   =    $86
  39. K_LALT   =    $87
  40. K_RALT   =    $88
  41. K_LAMIGA =    $89
  42. K_RAMIGA =    $8a
  43.  
  44. K_F1    =    $8b
  45. K_F2    =    $8c
  46. K_F3    =    $8d
  47. K_F4    =    $8e
  48. K_F5    =    $8f
  49. K_F6    =    $90
  50. K_F7    =    $91
  51. K_F8    =    $92
  52. K_F9    =    $93
  53. K_F10    =    $94
  54. K_F11    =    $95
  55. K_F12    =    $96
  56. K_F13    =    $97
  57. K_F14    =    $98
  58. K_F15    =    $99
  59. K_F16    =    $9a
  60. K_F17    =    $9b
  61. K_F18    =    $9c
  62. K_F19    =    $9d
  63. K_F20    =    $9e
  64.  
  65. C_UP    =    $9f
  66. C_DOWN    =    $a0
  67. C_RIGHT    =    $a1
  68. C_LEFT    =    $a2
  69.  
  70. K_SRIGHT =    $a3            ;Special key on right.
  71. K_SLEFT  =    $a4            ;Special key on left.
  72.  
  73. *** Special keys that are recognised under ASCII (here for convenience).
  74.  
  75. K_BAKSPC =    08
  76. K_TAB     =    09
  77. K_ENTER  =    10
  78. K_RETURN =    10
  79. K_ESC     =    $1b
  80.  
  81.     ENDC    ;INPUT_KEYBOARD_I
  82.